package org.example;

/**
 * @author wsq
 * @date 2024/7/23
 */
public class User {
    private String username;

    @ValidateAge(min=20,max=30,value=25)
    private int age;

    public User(String username, int age) {
        this.username = username;
        this.age = age;
    }
    public User(){

    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
